package com.asura.ecm.service.impl;

import com.asura.ecm.bean.OrderInfo;
import com.asura.ecm.service.UserService;

import java.util.List;

public class UserServiceStub implements UserService {

    private final UserService userService;


    /**
     * 传入的是userService远程的代理对象
     *
     * @param userService
     */
    public UserServiceStub(UserService userService) {
        super();
        this.userService = userService;
    }


    @Override
    public List<OrderInfo> getUserOrderList(String userId) {
        System.out.println("UserServiceStub.....");
        if (userId != null) {
            return userService.getUserOrderList(userId);
        }
        return null;
    }

}